<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>后盾人</title>
  </head>
  <body>
    <main>
      <a href="https://www.houdunren.com/1.jpg">1.jpg</a>
      <a href="https://oss.houdunren.com/2.jpg">2.jpg</a>
      <a href="https://cdn.houdunren.com/3.jpg">3.jpg</a>
      <a href="https://houdunren.com/4.jpg">后盾人</a>
    </main>
  </body>
  <script>
    var main = document.querySelector("main");
    var reg = /https?:\/\/(\w+)?(?<!oss)\..+?(?=\/)/g
    main.innerHTML = main.innerHTML.replace(reg, v => {
      console.log(v)
      
    });
  </script>
</html>
